# Copyright (c) 2011 Nokia Corporation.

QT += declarative
CONFIG += qt-components
MOBILITY +=

TARGET = accountsexample

HEADERS += \
    src/accountitem.h \
    src/accountmanager.h

SOURCES += \
    src/main.cpp \
    src/accountitem.cpp \
    src/accountmanager.cpp

RESOURCES += resources.qrc

OTHER_FILES += qml/*

exists($$QMAKE_INCDIR_QT"/../qmsystem2/qmkeys.h"):!contains(MEEGO_EDITION,harmattan): {
    MEEGO_VERSION_MAJOR     = 1
    MEEGO_VERSION_MINOR     = 2
    MEEGO_VERSION_PATCH     = 0
    MEEGO_EDITION           = harmattan
    DEFINES += MEEGO_EDITION_HARMATTAN

    CONFIG += meegotouch link_pkgconfig #accountsuiinterface-maemo-meegotouch
    PKGCONFIG += accounts-qt signon-plugins

    #LIBS += -lsignon-qt
    LIBS += -laccounts-qt -laccounts-glib

    target.path = /opt/accountsexample/bin
    INSTALLS += target
}
else {
    warning(This example application is only for MeeGo 1.2 Harmattan)
}

# End of file.
